package com.baizhi.shane.shane.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author 闻柏智
 * @date 2023/09/20 20:04:25
 */
@ApiModel("分页查询回答VO")
@Data
public class PageAnswerOutVO {
    @ApiModelProperty(value = "答案ID")
    private Long answerId;
    @ApiModelProperty(value = "答案创建时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date answerCreateTime;
    @ApiModelProperty(value = "答案显示文本")
    private String answerDisplayText;
    @ApiModelProperty(value = "问题ID")
    private Long questionId;
    @ApiModelProperty(value = "问题标题")
    private String questionTitle;
    @ApiModelProperty(value = "答案用户ID")
    private Long answerUserId;
    @ApiModelProperty(value = "答案用户名")
    private String answerUsername;
    @ApiModelProperty(value = "回答用户昵称")
    private String answerUserNickname;
    @ApiModelProperty(value = "回答用户头像URL")
    private String answerUserImageUrl;
    @ApiModelProperty(value = "问题用户ID")
    private Long questionUserId;
    @ApiModelProperty(value = "问题用户名")
    private String questionUsername;
    @ApiModelProperty(value = "问题用户昵称")
    private String questionUserNickname;
    @ApiModelProperty(value = "问题用户头像URL")
    private String questionUserImageUrl;
    @ApiModelProperty(value = "一级标签ID")
    private Long labelOneId;
    @ApiModelProperty(value = "二级标签ID")
    private Long labelTwoId;
    @ApiModelProperty(value = "一级标签名称")
    private String labelOneName;
    @ApiModelProperty(value = "二级标签名称")
    private String labelTwoName;
    @ApiModelProperty(value = "点赞数量")
    private Long likeCount;
    @ApiModelProperty(value = "当前用户是否已点赞")
    private Long nowUserLiked;
    @ApiModelProperty(value = "当前用户点赞的记录表ID")
    private Long nowUserLikedRelId;
    @ApiModelProperty(value = "收藏数量")
    private Long collectCount;
    @ApiModelProperty(value = "当前用户是否已收藏")
    private Long nowUserCollected;
    @ApiModelProperty(value = "当前用户收藏的记录表ID")
    private Long nowUserCollectedRelId;
    @ApiModelProperty(value = "评论数量")
    private Long commentCount;
    @ApiModelProperty(value = "当前用户是否已评论")
    private Long nowUserCommented;
    @ApiModelProperty(value = "是否显示评论树(供前端使用，默认为0不显示)")
    private Long showComment;
    @ApiModelProperty(value = "反对数量")
    private Long againstCount;
    @ApiModelProperty(value = "当前用户是否已反对")
    private Long nowUserAgainsted;
    @ApiModelProperty(value = "当前用户反对的记录表ID")
    private Long nowUserAgainstRelId;
    @ApiModelProperty(value = "评论树(供前端使用，默认为空数组)")
    private List<CommentAnswerVO> commentTreeList;

}
